<?php

namespace app\api\validate;

use think\Validate;

class Vipstyle extends Validate
{
    protected $rule = [
        ['id',        'require|number|>:0',         '套餐不存在|套餐不存在|套餐不存在'],
        ['method',    'require|number|in:1,2,3',    '付款方式有误|付款方式有误|付款方式有误'],
    ];

    protected $scene = [
        'buy'  => ['id', 'method'],
    ];
}

